class A(object):


    def showA(self):
        print(f"方法showA被调用了")


class B(A):

    def showB(self):
        print(f"方法showB被调起了")

# 多重继承
# class C(A, B):
#     pass

# 多层继承

class C(B):
    pass
c = C()
c.showA()
c.showB()

